/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GUI;

import DAO.*;
import DTO.*;
import java.util.List;

import java.util.List;
import java.util.ArrayList;
import java.util.Date;
import java.util.regex.*;

import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;





import java.awt.event.*;

import java.sql.*;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.HashMap;
import java.util.Map;

import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import net.sf.jasperreports.engine.JRException;
import net.sf.jasperreports.engine.JasperCompileManager;
import net.sf.jasperreports.engine.JasperFillManager;
import net.sf.jasperreports.engine.JasperPrint;
import net.sf.jasperreports.engine.JasperReport;
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
import net.sf.jasperreports.swing.JRViewer;

/**
 *
 * @author Luis Olave 10
 */
public class ModificacionGarantiaWarrant extends javax.swing.JFrame {
    usuarioDTO user;
    garantiasDAO reg = new garantiasDAO();
    garantiaWarrantsDTO garantia = new garantiaWarrantsDTO();
    
    /**
     * Creates new form ModificacionGarantiaWarrant
     */
    public ModificacionGarantiaWarrant(usuarioDTO user) {
        this.user = user;
        initComponents();
        pnlBuscarDUN.setVisible(false);
        chkFolioModWarra.setSelected(true);
        cargarItemsComboBoxSucursal();
        cargarItemsComboBoxTipoProducto();
        cargarItemsComboBoxMoneda();
        cargarItemsComboBoxTipoGarantia();
        this.btnActualizarModWarra.setVisible(false);
        this.setDefaultCloseOperation(this.EXIT_ON_CLOSE);
    }
private void cargarItemsComboBoxSucursal() {
        List<sucursalDTO> ListaSucursal = CCSucursal.listarItemSucursal();
        if (ListaSucursal != null) {
            int size = ListaSucursal.size();
            for (int i = 0; i < size; i++) {
                this.cmbSucursalModWarra.addItem(ListaSucursal.get(i));
            }
        }
    }

    private void cargarItemsComboBoxTipoProducto() {
        List<tipoProductoDTO> ListaTipoProducto = CCTipoProducto.listarItemTipoProducto();
        if (ListaTipoProducto != null) {
            int size = ListaTipoProducto.size();
            for (int i = 0; i < size; i++) {
                this.cmbTpoProdModWarra.addItem(ListaTipoProducto.get(i));
            }
        }
    }

    private void cargarItemsComboBoxMoneda() {
        List<monedaDTO> ListaMoneda = CCMoneda.listarItemMoneda();
        if (ListaMoneda != null) {
            int size = ListaMoneda.size();
            for (int i = 0; i < size; i++) {
                this.cmbMonedaModWarra.addItem(ListaMoneda.get(i));
            }
        }
    }

    private void cargarItemsComboBoxTipoGarantia() {
        List<tipoGarantiaDTO> ListaTipoGtia = CCTipoGarantia.listarItemTipoGarantia();
        if (ListaTipoGtia != null) {
            int size = ListaTipoGtia.size();
            for (int i = 0; i < size; i++) {
                this.cmbTpoGtiaModWarra.addItem(ListaTipoGtia.get(i));
            }
        }
    }
    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        buttonGroup1 = new javax.swing.ButtonGroup();
        jLabel2 = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel1 = new javax.swing.JPanel();
        btnMenuPrincipal = new javax.swing.JButton();
        pnlDatosPersoGara = new javax.swing.JPanel();
        jPanel8 = new javax.swing.JPanel();
        jLabel36 = new javax.swing.JLabel();
        jLabel37 = new javax.swing.JLabel();
        jLabel39 = new javax.swing.JLabel();
        jLabel40 = new javax.swing.JLabel();
        txtNombreModWarra = new javax.swing.JTextField();
        txtApellMatModWarra = new javax.swing.JTextField();
        txtApellPatModWarra = new javax.swing.JTextField();
        txtRutModWarra = new javax.swing.JTextField();
        chkFolioModWarra = new javax.swing.JCheckBox();
        chkDunModWarra = new javax.swing.JCheckBox();
        pnlBuscarDUN = new javax.swing.JPanel();
        jLabel31 = new javax.swing.JLabel();
        txtDunModWarra = new javax.swing.JTextField();
        btnDunModWarra = new javax.swing.JButton();
        pnlBuscarFolio = new javax.swing.JPanel();
        jLabel30 = new javax.swing.JLabel();
        txtFolioModWarra = new javax.swing.JTextField();
        btnBuscarFolioModWarra = new javax.swing.JButton();
        jPanel2 = new javax.swing.JPanel();
        pnlDescripGarantia = new javax.swing.JPanel();
        jScrollPane3 = new javax.swing.JScrollPane();
        txtOtroComentarioModWarra = new javax.swing.JTextArea();
        jScrollPane4 = new javax.swing.JScrollPane();
        txtDescripcionModWarra = new javax.swing.JTextArea();
        lblDescripcion = new javax.swing.JLabel();
        jPanel3 = new javax.swing.JPanel();
        pnlCreacionGaraWarra = new javax.swing.JPanel();
        jPanel4 = new javax.swing.JPanel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        cmbTpoProdModWarra = new javax.swing.JComboBox();
        cmbSucursalModWarra = new javax.swing.JComboBox();
        jLabel15 = new javax.swing.JLabel();
        jLabel14 = new javax.swing.JLabel();
        jLabel13 = new javax.swing.JLabel();
        cmbMonedaModWarra = new javax.swing.JComboBox();
        jcUltimoDebito = new com.toedter.calendar.JDateChooser();
        jcUltimaTasacion = new com.toedter.calendar.JDateChooser();
        jcFechaModifica = new com.toedter.calendar.JDateChooser();
        txtFechaCreacion = new javax.swing.JTextField();
        jLabel17 = new javax.swing.JLabel();
        txtDun14 = new javax.swing.JTextField();
        jPanel5 = new javax.swing.JPanel();
        jLabel8 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        cmbTpoGtiaModWarra = new javax.swing.JComboBox();
        txtIngProdModWarra = new javax.swing.JTextField();
        jcFechaExtincion = new com.toedter.calendar.JDateChooser();
        jcFechaUltRevaluo = new com.toedter.calendar.JDateChooser();
        jcFechaUltimoCredito = new com.toedter.calendar.JDateChooser();
        jPanel9 = new javax.swing.JPanel();
        jLabel16 = new javax.swing.JLabel();
        txtAdjArchiModWarra = new javax.swing.JTextField();
        btnExaminarModWarra = new javax.swing.JButton();
        btnAdjuntarModWarra = new javax.swing.JButton();
        btnMenuPriciModWarra = new javax.swing.JButton();
        btnActualizarModWarra = new javax.swing.JButton();
        jPanel6 = new javax.swing.JPanel();
        jPanel7 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        tbSalidaImprimirModificacionWarrant = new javax.swing.JTable();
        jPanel10 = new javax.swing.JPanel();
        txtBuscarDunImprimir = new javax.swing.JTextField();
        btnBuscarDUNImprimir = new javax.swing.JButton();
        btnImprimirModificacionWarrant = new javax.swing.JButton();
        btnMenuPrincipalWarrant = new javax.swing.JButton();
        jLabel3 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("MODIFICACIÓN GARANTÍA WARRANT");
        setResizable(false);

        jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMAGE/logo.JPG"))); // NOI18N

        jLabel1.setFont(new java.awt.Font("Century Gothic", 1, 18)); // NOI18N
        jLabel1.setText("MODIFICACIÓN GARANTÍA WARRANT");

        jTabbedPane1.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N

        btnMenuPrincipal.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnMenuPrincipal.setText("MENÚ PRINCIPAL");
        btnMenuPrincipal.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnMenuPrincipalActionPerformed(evt);
            }
        });

        pnlDatosPersoGara.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "DATOS PERSONALES GARANTE", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        jLabel36.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel36.setText("RUT");

        jLabel37.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel37.setText("APELLIDO PATERNO");

        jLabel39.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel39.setText("APELLIDO MATERNO");

        jLabel40.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel40.setText("NOMBRE");

        txtNombreModWarra.setBackground(new java.awt.Color(255, 255, 102));
        txtNombreModWarra.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtNombreModWarra.setEnabled(false);

        txtApellMatModWarra.setBackground(new java.awt.Color(255, 255, 102));
        txtApellMatModWarra.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtApellMatModWarra.setEnabled(false);

        txtApellPatModWarra.setBackground(new java.awt.Color(255, 255, 102));
        txtApellPatModWarra.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtApellPatModWarra.setEnabled(false);

        txtRutModWarra.setBackground(new java.awt.Color(255, 255, 102));
        txtRutModWarra.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtRutModWarra.setEnabled(false);

        javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
        jPanel8.setLayout(jPanel8Layout);
        jPanel8Layout.setHorizontalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel37)
                    .addComponent(jLabel36))
                .addGap(18, 18, 18)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(txtRutModWarra, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtApellPatModWarra, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 107, Short.MAX_VALUE)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(jPanel8Layout.createSequentialGroup()
                        .addComponent(jLabel39)
                        .addGap(18, 18, 18)
                        .addComponent(txtApellMatModWarra, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel8Layout.createSequentialGroup()
                        .addComponent(jLabel40)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(txtNombreModWarra, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(196, 196, 196))
        );
        jPanel8Layout.setVerticalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel8Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel36)
                    .addComponent(txtRutModWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel40)
                    .addComponent(txtNombreModWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel37)
                    .addComponent(txtApellPatModWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel39)
                    .addComponent(txtApellMatModWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        javax.swing.GroupLayout pnlDatosPersoGaraLayout = new javax.swing.GroupLayout(pnlDatosPersoGara);
        pnlDatosPersoGara.setLayout(pnlDatosPersoGaraLayout);
        pnlDatosPersoGaraLayout.setHorizontalGroup(
            pnlDatosPersoGaraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlDatosPersoGaraLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        pnlDatosPersoGaraLayout.setVerticalGroup(
            pnlDatosPersoGaraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlDatosPersoGaraLayout.createSequentialGroup()
                .addGap(0, 0, Short.MAX_VALUE)
                .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        buttonGroup1.add(chkFolioModWarra);
        chkFolioModWarra.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        chkFolioModWarra.setText("BUSCAR POR N° FOLIO");
        chkFolioModWarra.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                chkFolioModWarraActionPerformed(evt);
            }
        });

        buttonGroup1.add(chkDunModWarra);
        chkDunModWarra.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        chkDunModWarra.setText("BUSCAR POR CÓDIGO (D.U.N 14)");
        chkDunModWarra.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                chkDunModWarraActionPerformed(evt);
            }
        });

        pnlBuscarDUN.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "INGRESE CÓDIGO (D.U.N 14)", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        jLabel31.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel31.setText("CÓDIGO");

        btnDunModWarra.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnDunModWarra.setText("BUSCAR");
        btnDunModWarra.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnDunModWarraActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout pnlBuscarDUNLayout = new javax.swing.GroupLayout(pnlBuscarDUN);
        pnlBuscarDUN.setLayout(pnlBuscarDUNLayout);
        pnlBuscarDUNLayout.setHorizontalGroup(
            pnlBuscarDUNLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlBuscarDUNLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel31)
                .addGap(18, 18, 18)
                .addGroup(pnlBuscarDUNLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(txtDunModWarra)
                    .addComponent(btnDunModWarra, javax.swing.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE))
                .addContainerGap(52, Short.MAX_VALUE))
        );
        pnlBuscarDUNLayout.setVerticalGroup(
            pnlBuscarDUNLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlBuscarDUNLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(pnlBuscarDUNLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel31)
                    .addComponent(txtDunModWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnDunModWarra)
                .addContainerGap())
        );

        pnlBuscarFolio.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "INGRESE N° FOLIO", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        jLabel30.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel30.setText("N° FOLIO");

        btnBuscarFolioModWarra.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnBuscarFolioModWarra.setText("BUSCAR");
        btnBuscarFolioModWarra.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBuscarFolioModWarraActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout pnlBuscarFolioLayout = new javax.swing.GroupLayout(pnlBuscarFolio);
        pnlBuscarFolio.setLayout(pnlBuscarFolioLayout);
        pnlBuscarFolioLayout.setHorizontalGroup(
            pnlBuscarFolioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlBuscarFolioLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel30)
                .addGap(18, 18, 18)
                .addGroup(pnlBuscarFolioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(txtFolioModWarra)
                    .addComponent(btnBuscarFolioModWarra, javax.swing.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE))
                .addContainerGap(68, Short.MAX_VALUE))
        );
        pnlBuscarFolioLayout.setVerticalGroup(
            pnlBuscarFolioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlBuscarFolioLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(pnlBuscarFolioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel30)
                    .addComponent(txtFolioModWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnBuscarFolioModWarra)
                .addContainerGap())
        );

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(pnlDatosPersoGara, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addContainerGap())
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(btnMenuPrincipal, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                        .addGap(0, 157, Short.MAX_VALUE)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(pnlBuscarFolio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(chkFolioModWarra, javax.swing.GroupLayout.PREFERRED_SIZE, 171, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(chkDunModWarra)
                            .addComponent(pnlBuscarDUN, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(141, 141, 141))))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(chkFolioModWarra, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(chkDunModWarra, javax.swing.GroupLayout.Alignment.TRAILING))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(pnlBuscarDUN, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(pnlBuscarFolio, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addComponent(pnlDatosPersoGara, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(124, 124, 124)
                .addComponent(btnMenuPrincipal)
                .addContainerGap(74, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("INFO. GARANTE", jPanel1);

        pnlDescripGarantia.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "DESCRIPCIÓN GARANTIA", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        txtOtroComentarioModWarra.setColumns(20);
        txtOtroComentarioModWarra.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        txtOtroComentarioModWarra.setRows(5);
        txtOtroComentarioModWarra.setToolTipText("");
        jScrollPane3.setViewportView(txtOtroComentarioModWarra);

        txtDescripcionModWarra.setBackground(new java.awt.Color(255, 255, 102));
        txtDescripcionModWarra.setColumns(20);
        txtDescripcionModWarra.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        txtDescripcionModWarra.setRows(5);
        txtDescripcionModWarra.setText("SIN DESCRIPCIÓN\n");
        txtDescripcionModWarra.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtDescripcionModWarra.setEnabled(false);
        jScrollPane4.setViewportView(txtDescripcionModWarra);

        lblDescripcion.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblDescripcion.setText("DESCRIPCIÓN");

        javax.swing.GroupLayout pnlDescripGarantiaLayout = new javax.swing.GroupLayout(pnlDescripGarantia);
        pnlDescripGarantia.setLayout(pnlDescripGarantiaLayout);
        pnlDescripGarantiaLayout.setHorizontalGroup(
            pnlDescripGarantiaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlDescripGarantiaLayout.createSequentialGroup()
                .addGap(70, 70, 70)
                .addComponent(lblDescripcion)
                .addGap(18, 18, 18)
                .addGroup(pnlDescripGarantiaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 620, Short.MAX_VALUE)
                    .addComponent(jScrollPane3))
                .addContainerGap())
        );
        pnlDescripGarantiaLayout.setVerticalGroup(
            pnlDescripGarantiaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlDescripGarantiaLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(pnlDescripGarantiaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblDescripcion)
                    .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(31, 31, 31)
                .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(250, 250, 250))
        );

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pnlDescripGarantia, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pnlDescripGarantia, javax.swing.GroupLayout.PREFERRED_SIZE, 359, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(104, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("DESCRIP. GARANTÍA", jPanel2);

        pnlCreacionGaraWarra.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "MODIFICACIÓN GARANTÍA WARRANT", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        jLabel4.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel4.setText("SUCURSAL");

        jLabel5.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel5.setText("TIPO PRODUCTO");

        jLabel6.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel6.setText("FECHA CREACIÓN");

        jLabel7.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel7.setText("FECHA ÚLT. DEBITO");

        cmbTpoProdModWarra.setEditable(true);
        cmbTpoProdModWarra.setFont(new java.awt.Font("Century Gothic", 0, 10)); // NOI18N
        cmbTpoProdModWarra.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Seleccione" }));

        cmbSucursalModWarra.setEditable(true);
        cmbSucursalModWarra.setFont(new java.awt.Font("Century Gothic", 0, 10)); // NOI18N
        cmbSucursalModWarra.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Seleccione" }));

        jLabel15.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel15.setText("FECHA MODIFICA.");

        jLabel14.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel14.setText("FECHA ÚLT. TASACIÓN");

        jLabel13.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel13.setText("MONEDA");

        cmbMonedaModWarra.setEditable(true);
        cmbMonedaModWarra.setFont(new java.awt.Font("Century Gothic", 0, 10)); // NOI18N
        cmbMonedaModWarra.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Seleccione" }));

        txtFechaCreacion.setEditable(false);
        txtFechaCreacion.setBackground(new java.awt.Color(255, 255, 0));

        jLabel17.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel17.setText("D.U.N.14");

        txtDun14.setEditable(false);

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(jLabel14)
                        .addGap(18, 18, 18)
                        .addComponent(jcUltimaTasacion, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(jLabel15)
                        .addGap(41, 41, 41)
                        .addComponent(jcFechaModifica, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel4Layout.createSequentialGroup()
                            .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel13)
                                .addComponent(jLabel7)
                                .addComponent(jLabel6)
                                .addComponent(jLabel5)
                                .addComponent(jLabel4))
                            .addGap(39, 39, 39)
                            .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addComponent(cmbTpoProdModWarra, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(cmbSucursalModWarra, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jcUltimoDebito, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(cmbMonedaModWarra, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(txtFechaCreacion))
                            .addGap(0, 0, Short.MAX_VALUE))
                        .addGroup(jPanel4Layout.createSequentialGroup()
                            .addComponent(jLabel17)
                            .addGap(96, 96, 96)
                            .addComponent(txtDun14))))
                .addContainerGap())
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel4)
                    .addComponent(cmbSucursalModWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel5)
                    .addComponent(cmbTpoProdModWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(jLabel6)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel7))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(txtFechaCreacion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(6, 6, 6)
                        .addComponent(jcUltimoDebito, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel13)
                    .addComponent(cmbMonedaModWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel14)
                    .addComponent(jcUltimaTasacion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel15)
                    .addComponent(jcFechaModifica, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel17)
                    .addComponent(txtDun14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jLabel8.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel8.setText("TIPO GARANTÍA");

        jLabel9.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel9.setText("INGRESE PRODUCTO");

        jLabel10.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel10.setText("FECHA EXTINCIÓN");

        jLabel11.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel11.setText("FECHA ÚLT. REVALUO");

        jLabel12.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel12.setText("FECHA ÚLT. CRÉDITO");

        cmbTpoGtiaModWarra.setEditable(true);
        cmbTpoGtiaModWarra.setFont(new java.awt.Font("Century Gothic", 0, 10)); // NOI18N
        cmbTpoGtiaModWarra.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Seleccione" }));

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addComponent(jLabel9)
                        .addContainerGap())
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(jPanel5Layout.createSequentialGroup()
                                    .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(jLabel10)
                                        .addComponent(jLabel12))
                                    .addGap(24, 24, 24))
                                .addComponent(jLabel11, javax.swing.GroupLayout.Alignment.TRAILING))
                            .addComponent(jLabel8))
                        .addGap(3, 3, 3)
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(cmbTpoGtiaModWarra, 0, 156, Short.MAX_VALUE)
                            .addComponent(jcFechaExtincion, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jcFechaUltRevaluo, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jcFechaUltimoCredito, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(txtIngProdModWarra)))))
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel8)
                    .addComponent(cmbTpoGtiaModWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel9)
                    .addComponent(txtIngProdModWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel10)
                    .addComponent(jcFechaExtincion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel11)
                    .addComponent(jcFechaUltRevaluo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel12)
                    .addComponent(jcFechaUltimoCredito, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel9.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "ADJUNTAR ARCHIVO", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        jLabel16.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel16.setText("ARCHIVO");

        txtAdjArchiModWarra.setEditable(false);

        btnExaminarModWarra.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnExaminarModWarra.setText("EXAMINAR");
        btnExaminarModWarra.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnExaminarModWarraActionPerformed(evt);
            }
        });

        btnAdjuntarModWarra.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnAdjuntarModWarra.setText("ADJUNTAR");
        btnAdjuntarModWarra.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAdjuntarModWarraActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
        jPanel9.setLayout(jPanel9Layout);
        jPanel9Layout.setHorizontalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel16)
                .addGap(18, 18, 18)
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel9Layout.createSequentialGroup()
                        .addComponent(btnExaminarModWarra)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnAdjuntarModWarra))
                    .addComponent(txtAdjArchiModWarra, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel9Layout.setVerticalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel9Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel16)
                    .addComponent(txtAdjArchiModWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnExaminarModWarra)
                    .addComponent(btnAdjuntarModWarra))
                .addContainerGap())
        );

        javax.swing.GroupLayout pnlCreacionGaraWarraLayout = new javax.swing.GroupLayout(pnlCreacionGaraWarra);
        pnlCreacionGaraWarra.setLayout(pnlCreacionGaraWarraLayout);
        pnlCreacionGaraWarraLayout.setHorizontalGroup(
            pnlCreacionGaraWarraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlCreacionGaraWarraLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 188, Short.MAX_VALUE)
                .addGroup(pnlCreacionGaraWarraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel5, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel9, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );
        pnlCreacionGaraWarraLayout.setVerticalGroup(
            pnlCreacionGaraWarraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlCreacionGaraWarraLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlCreacionGaraWarraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(pnlCreacionGaraWarraLayout.createSequentialGroup()
                        .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(72, Short.MAX_VALUE))
        );

        btnMenuPriciModWarra.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnMenuPriciModWarra.setText("MÉNU PRINCIPAL >>");
        btnMenuPriciModWarra.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnMenuPriciModWarraActionPerformed(evt);
            }
        });

        btnActualizarModWarra.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnActualizarModWarra.setText("ACTUALIZAR");
        btnActualizarModWarra.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnActualizarModWarraActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(btnActualizarModWarra)
                        .addGap(316, 316, 316))
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(pnlCreacionGaraWarra, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGroup(jPanel3Layout.createSequentialGroup()
                                .addGap(0, 0, Short.MAX_VALUE)
                                .addComponent(btnMenuPriciModWarra, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                .addContainerGap())
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pnlCreacionGaraWarra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnMenuPriciModWarra)
                    .addComponent(btnActualizarModWarra))
                .addContainerGap(73, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("MODIFICACIÓN GARANTÍA WARRANT", jPanel3);

        jPanel7.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "ÁREA IMPRESIÓN", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        tbSalidaImprimirModificacionWarrant.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {

            }
        ));
        tbSalidaImprimirModificacionWarrant.setEnabled(false);
        jScrollPane1.setViewportView(tbSalidaImprimirModificacionWarrant);

        javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
        jPanel7.setLayout(jPanel7Layout);
        jPanel7Layout.setHorizontalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1)
                .addContainerGap())
        );
        jPanel7Layout.setVerticalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 274, Short.MAX_VALUE)
                .addContainerGap())
        );

        jPanel10.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "INGRESE D.U.N. 14", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        btnBuscarDUNImprimir.setText("BUSCAR");
        btnBuscarDUNImprimir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBuscarDUNImprimirActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);
        jPanel10.setLayout(jPanel10Layout);
        jPanel10Layout.setHorizontalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel10Layout.createSequentialGroup()
                .addGap(35, 35, 35)
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(txtBuscarDunImprimir)
                    .addComponent(btnBuscarDUNImprimir, javax.swing.GroupLayout.DEFAULT_SIZE, 146, Short.MAX_VALUE))
                .addContainerGap(33, Short.MAX_VALUE))
        );
        jPanel10Layout.setVerticalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel10Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(txtBuscarDunImprimir, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnBuscarDUNImprimir))
        );

        btnImprimirModificacionWarrant.setText("IMPRIMIR");
        btnImprimirModificacionWarrant.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnImprimirModificacionWarrantActionPerformed(evt);
            }
        });

        btnMenuPrincipalWarrant.setText("MENÚ PRINCIPAL");
        btnMenuPrincipalWarrant.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnMenuPrincipalWarrantActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
        jPanel6.setLayout(jPanel6Layout);
        jPanel6Layout.setHorizontalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel6Layout.createSequentialGroup()
                        .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addContainerGap())
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()
                        .addGap(0, 269, Short.MAX_VALUE)
                        .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()
                                .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(324, 324, 324))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()
                                .addComponent(btnImprimirModificacionWarrant, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(198, 198, 198)
                                .addComponent(btnMenuPrincipalWarrant, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(27, 27, 27))))))
        );
        jPanel6Layout.setVerticalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addGap(16, 16, 16)
                .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(btnMenuPrincipalWarrant)
                    .addComponent(btnImprimirModificacionWarrant))
                .addContainerGap(16, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("IMPRIMIR", jPanel6);

        jLabel3.setText("MENÚ PRINCIPAL\\MODIFICACIÓN GARANTÍA WARRANT");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel2)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(118, 118, 118)
                        .addComponent(jLabel1))
                    .addGroup(layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel3)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addComponent(jTabbedPane1)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel1)
                    .addComponent(jLabel2)
                    .addComponent(jLabel3, javax.swing.GroupLayout.Alignment.TRAILING))
                .addGap(18, 18, 18)
                .addComponent(jTabbedPane1))
        );

        setSize(new java.awt.Dimension(850, 646));
        setLocationRelativeTo(null);
    }// </editor-fold>//GEN-END:initComponents

    private void btnMenuPrincipalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnMenuPrincipalActionPerformed
        MenuPrincipal venMenuPrincipal = new MenuPrincipal(user);
        venMenuPrincipal.setVisible(true);
        ModificacionGarantiaWarrant.this.dispose();
    }//GEN-LAST:event_btnMenuPrincipalActionPerformed

    private void btnMenuPriciModWarraActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnMenuPriciModWarraActionPerformed
       MenuPrincipal venMenuPrincipal = new MenuPrincipal(user);
        venMenuPrincipal.setVisible(true);
        ModificacionGarantiaWarrant.this.dispose();
    }//GEN-LAST:event_btnMenuPriciModWarraActionPerformed

    private void btnBuscarFolioModWarraActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBuscarFolioModWarraActionPerformed
       limpiar();
        
        try {   
              if(this.txtFolioModWarra.getText().length() > 0)
            {
        if (!this.txtFolioModWarra.getText().matches("[ 0-9]*")) // expresiones regulares para validar
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese solo números");
            this.txtFolioModWarra.setText(""); 
            this.txtDunModWarra.setText("");
            this.btnActualizarModWarra.setVisible(false);
        }
        else
        {
        garantiaWarrantsDTO garantia = reg.buscarPorFolioWarra(Integer.parseInt(this.txtFolioModWarra.getText()));
        if(garantia.getFolio_warra() == 0)
        {
            javax.swing.JOptionPane.showMessageDialog(null, "Garantia NO ENCONTRADA");
            txtFolioModWarra.setText("");
            this.txtDunModWarra.setText("");
            this.btnActualizarModWarra.setVisible(false);
        }
        else
        {
            if(garantia.getEstado_warra() == null)
            {
                this.txtRutModWarra.setText(garantia.getRut_garante_warra());
//            this.txtFolioGarModWarra.setText(String.valueOf(garantia.getFolio_warra()));
            this.txtApellPatModWarra.setText(garantia.getApell_paterno_warra());
            this.txtApellMatModWarra.setText(garantia.getApell_materno_warra());
            this.txtNombreModWarra.setText(garantia.getNombre_warra());
            this.txtDescripcionModWarra.setText(garantia.getDescrip_warra());
            this.txtOtroComentarioModWarra.setText(garantia.getComent_warra());
            //sucursal
            //tipo_producto
            this.txtDun14.setText(garantia.getDun_warra());
            this.txtIngProdModWarra.setText(garantia.getIngre_prod_warra());
            String fechaCreacion = (new SimpleDateFormat("dd/MM/yyyy").format(garantia.getFech_crea_warra())); 
            txtFechaCreacion.setText(fechaCreacion);
            Date aux_fecha = DTO.ConversionFechas.convertToDate(garantia.getFech_ult_deb_warra());
            this.jcUltimoDebito.setDate(aux_fecha);
            aux_fecha = DTO.ConversionFechas.convertToDate(garantia.getFech_ult_tasa_warra());
            this.jcUltimaTasacion.setDate(aux_fecha);
            aux_fecha = DTO.ConversionFechas.convertToDate(garantia.getFech_modifi_warra());
            this.jcFechaModifica.setDate(aux_fecha);
            this.jcFechaExtincion.setDate(new Date(garantia.getFech_exti_warra().getTime()));
            aux_fecha = DTO.ConversionFechas.convertToDate(garantia.getFech_ult_reval_warra());
            this.jcFechaUltRevaluo.setDate(aux_fecha);
            aux_fecha = DTO.ConversionFechas.convertToDate(garantia.getFech_ult_cred_warra());
            this.jcFechaUltimoCredito.setDate(aux_fecha);
            this.cmbSucursalModWarra.setSelectedItem(garantia.getNom_sucursal_warra());
            this.cmbTpoProdModWarra.setSelectedItem(garantia.getTipo_prod_warra());
            this.cmbMonedaModWarra.setSelectedItem(garantia.getNom_moneda_warra());
            this.cmbTpoGtiaModWarra.setSelectedItem(garantia.getTipo_gara_warra());
            javax.swing.JOptionPane.showMessageDialog(this, "Aun no ha sido Aprobado");
            this.btnActualizarModWarra.setVisible(true);
            this.txtDunModWarra.setText("");
            }
            else
            {
            this.txtRutModWarra.setText(garantia.getRut_garante_warra());
//            this.txtFolioGarModWarra.setText(String.valueOf(garantia.getFolio_warra()));
            this.txtApellPatModWarra.setText(garantia.getApell_paterno_warra());
            this.txtApellMatModWarra.setText(garantia.getApell_materno_warra());
            this.txtNombreModWarra.setText(garantia.getNombre_warra());
            this.txtDescripcionModWarra.setText(garantia.getDescrip_warra());
            this.txtDun14.setText(garantia.getDun_warra());
            this.txtOtroComentarioModWarra.setText(garantia.getComent_warra());
            //sucursal
            //tipo_producto
            this.txtIngProdModWarra.setText(garantia.getIngre_prod_warra());
            String fechaCreacion = (new SimpleDateFormat("dd/MM/yyyy").format(garantia.getFech_crea_warra())); 
            txtFechaCreacion.setText(fechaCreacion);
            Date aux_fecha = DTO.ConversionFechas.convertToDate(garantia.getFech_ult_deb_warra());
            this.jcUltimoDebito.setDate(aux_fecha);
            aux_fecha = DTO.ConversionFechas.convertToDate(garantia.getFech_ult_tasa_warra());
            this.jcUltimaTasacion.setDate(aux_fecha);
            aux_fecha = DTO.ConversionFechas.convertToDate(garantia.getFech_modifi_warra());
            this.jcFechaModifica.setDate(aux_fecha);
            this.jcFechaExtincion.setDate(new Date(garantia.getFech_exti_warra().getTime()));
            aux_fecha = DTO.ConversionFechas.convertToDate(garantia.getFech_ult_reval_warra());
            this.jcFechaUltRevaluo.setDate(aux_fecha);
            aux_fecha = DTO.ConversionFechas.convertToDate(garantia.getFech_ult_cred_warra());
            this.jcFechaUltimoCredito.setDate(aux_fecha);
            this.cmbSucursalModWarra.setSelectedItem(garantia.getNom_sucursal_warra());
            this.cmbTpoProdModWarra.setSelectedItem(garantia.getTipo_prod_warra());
            this.cmbMonedaModWarra.setSelectedItem(garantia.getNom_moneda_warra());
            this.cmbTpoGtiaModWarra.setSelectedItem(garantia.getTipo_gara_warra());
            this.txtDunModWarra.setText("");
            
            if (garantia.getEstado_warra().equalsIgnoreCase("Aprobada")) {
                javax.swing.JOptionPane.showMessageDialog(null, "Esta garantia ya fue aprobada. No puede ser modificada.");
                MenuPrincipal venMenuPrincipal = new MenuPrincipal(user);
                venMenuPrincipal.setVisible(true);
                ModificacionGarantiaWarrant.this.dispose();
                this.txtDunModWarra.setText("");
            }
            if (garantia.getEstado_warra().equalsIgnoreCase("Rechazada")) {
                javax.swing.JOptionPane.showMessageDialog(null, "Esta garantia fue rechazada.");
                this.btnActualizarModWarra.setVisible(true);
                this.txtDunModWarra.setText("");
            }
            }
        }}}
           else
    {
        javax.swing.JOptionPane.showMessageDialog(this, "Ingrese número de folio");
        this.txtDunModWarra.setText("");
    }
          } catch (Exception e) {
            e.getMessage();
            
        }    
    }//GEN-LAST:event_btnBuscarFolioModWarraActionPerformed

    private void btnDunModWarraActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnDunModWarraActionPerformed
        limpiar();
        try {   
       
          if(this.txtDunModWarra.getText().length() > 0)
            {
        garantiaWarrantsDTO garantia = reg.buscarPorDUN(this.txtDunModWarra.getText());
        if(garantia.getFolio_warra() == 0)
        {
            javax.swing.JOptionPane.showMessageDialog(null, "Garantia NO ENCONTRADA");
            this.txtFolioModWarra.setText("");
            this.btnActualizarModWarra.setVisible(false);   
        }
        else
        {
            if(garantia.getEstado_warra() == null)
            {
                this.txtRutModWarra.setText(garantia.getRut_garante_warra());
//            this.txtFolioGarModWarra.setText(String.valueOf(garantia.getFolio_warra()));
            this.txtApellPatModWarra.setText(garantia.getApell_paterno_warra());
            this.txtApellMatModWarra.setText(garantia.getApell_materno_warra());
            this.txtNombreModWarra.setText(garantia.getNombre_warra());
            this.txtDescripcionModWarra.setText(garantia.getDescrip_warra());
            this.txtDun14.setText(garantia.getDun_warra());
            this.txtOtroComentarioModWarra.setText(garantia.getComent_warra());
            //sucursal
            //tipo_producto
            this.txtIngProdModWarra.setText(garantia.getIngre_prod_warra());
            String fechaCreacion = (new SimpleDateFormat("dd/MM/yyyy").format(garantia.getFech_crea_warra())); 
            txtFechaCreacion.setText(fechaCreacion);
            Date aux_fecha = DTO.ConversionFechas.convertToDate(garantia.getFech_ult_deb_warra());
            this.jcUltimoDebito.setDate(aux_fecha);
            aux_fecha = DTO.ConversionFechas.convertToDate(garantia.getFech_ult_tasa_warra());
            this.jcUltimaTasacion.setDate(aux_fecha);
            aux_fecha = DTO.ConversionFechas.convertToDate(garantia.getFech_modifi_warra());
            this.jcFechaModifica.setDate(aux_fecha);
            this.jcFechaExtincion.setDate(new Date(garantia.getFech_exti_warra().getTime()));
            aux_fecha = DTO.ConversionFechas.convertToDate(garantia.getFech_ult_reval_warra());
            this.jcFechaUltRevaluo.setDate(aux_fecha);
            aux_fecha = DTO.ConversionFechas.convertToDate(garantia.getFech_ult_cred_warra());
            this.jcFechaUltimoCredito.setDate(aux_fecha);
            this.jcFechaUltimoCredito.setDate(aux_fecha);
            this.cmbSucursalModWarra.setSelectedItem(garantia.getNom_sucursal_warra());
            this.cmbTpoProdModWarra.setSelectedItem(garantia.getTipo_prod_warra());
            this.cmbMonedaModWarra.setSelectedItem(garantia.getNom_moneda_warra());
            this.cmbTpoGtiaModWarra.setSelectedItem(garantia.getTipo_gara_warra());
            javax.swing.JOptionPane.showMessageDialog(this, "Aun no ha sido Aprobado");
            this.btnActualizarModWarra.setVisible(true);
            this.txtFolioModWarra.setText("");
            }
            else
            {
            this.txtRutModWarra.setText(garantia.getRut_garante_warra());
//            this.txtFolioGarModWarra.setText(String.valueOf(garantia.getFolio_warra()));
            this.txtApellPatModWarra.setText(garantia.getApell_paterno_warra());
            this.txtApellMatModWarra.setText(garantia.getApell_materno_warra());
            this.txtNombreModWarra.setText(garantia.getNombre_warra());
            this.txtDescripcionModWarra.setText(garantia.getDescrip_warra());
            this.txtDun14.setText(garantia.getDun_warra());
            this.txtOtroComentarioModWarra.setText(garantia.getComent_warra());
            //sucursal
            //tipo_producto
            this.txtIngProdModWarra.setText(garantia.getIngre_prod_warra());
            String fechaCreacion = (new SimpleDateFormat("dd/MM/yyyy").format(garantia.getFech_crea_warra())); 
            txtFechaCreacion.setText(fechaCreacion);
            Date aux_fecha = DTO.ConversionFechas.convertToDate(garantia.getFech_ult_deb_warra());
            this.jcUltimoDebito.setDate(aux_fecha);
            aux_fecha = DTO.ConversionFechas.convertToDate(garantia.getFech_ult_tasa_warra());
            this.jcUltimaTasacion.setDate(aux_fecha);
            aux_fecha = DTO.ConversionFechas.convertToDate(garantia.getFech_modifi_warra());
            this.jcFechaModifica.setDate(aux_fecha);
            this.jcFechaExtincion.setDate(new Date(garantia.getFech_exti_warra().getTime()));
            aux_fecha = DTO.ConversionFechas.convertToDate(garantia.getFech_ult_reval_warra());
            this.jcFechaUltRevaluo.setDate(aux_fecha);
            aux_fecha = DTO.ConversionFechas.convertToDate(garantia.getFech_ult_cred_warra());
            this.jcFechaUltimoCredito.setDate(aux_fecha);
            this.jcFechaUltimoCredito.setDate(aux_fecha);
            this.cmbSucursalModWarra.setSelectedItem(garantia.getNom_sucursal_warra());
            this.cmbTpoProdModWarra.setSelectedItem(garantia.getTipo_prod_warra());
            this.cmbMonedaModWarra.setSelectedItem(garantia.getNom_moneda_warra());
            this.cmbTpoGtiaModWarra.setSelectedItem(garantia.getTipo_gara_warra());
            this.btnActualizarModWarra.setVisible(true);
            this.txtFolioModWarra.setText("");
            
            if (garantia.getEstado_warra().equalsIgnoreCase("Aprobada")) {
                javax.swing.JOptionPane.showMessageDialog(null, "Esta garantia ya fue aprobada. No puede ser modificada.");
                MenuPrincipal venMenuPrincipal = new MenuPrincipal(user);
                venMenuPrincipal.setVisible(true);
                ModificacionGarantiaWarrant.this.dispose();
                this.txtFolioModWarra.setText("");
            }
            if (garantia.getEstado_warra().equalsIgnoreCase("Rechazada")) {
                javax.swing.JOptionPane.showMessageDialog(null, "Esta garantia fue rechazada.");
                this.btnActualizarModWarra.setVisible(true);
                this.txtFolioModWarra.setText("");
            }}
        }}else
    {
        javax.swing.JOptionPane.showMessageDialog(this, "Ingrese D.U.N 14");
        this.txtFolioModWarra.setText("");
    }
        }
         catch (Exception e) {
            e.getMessage();
            
        }
    }//GEN-LAST:event_btnDunModWarraActionPerformed

    private void btnActualizarModWarraActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnActualizarModWarraActionPerformed


try
{
        garantia.setDun_warra(txtDun14.getText());
        garantia.setDescrip_warra(txtDescripcionModWarra.getText());
        garantia.setComent_warra(txtOtroComentarioModWarra.getText());
        garantia.setFech_ult_deb_warra(new SimpleDateFormat("dd/MM/yyyy").format(jcUltimoDebito.getDate()));
        garantia.setFech_ult_tasa_warra(new SimpleDateFormat("dd/MM/yyyy").format(jcUltimaTasacion.getDate()));
        garantia.setFech_modifi_warra(new SimpleDateFormat("dd/MM/yyyy").format(jcFechaModifica.getDate()));
        garantia.setFech_exti_warra(new Date(jcFechaExtincion.getDate().getTime()));
        garantia.setFech_ult_reval_warra(new SimpleDateFormat("dd/MM/yyyy").format(jcFechaUltRevaluo.getDate()));
        garantia.setFech_ult_cred_warra(new SimpleDateFormat("dd/MM/yyyy").format(jcFechaUltimoCredito.getDate()));
        garantia.setNom_sucursal_warra(cmbSucursalModWarra.getSelectedItem().toString());
        garantia.setTipo_prod_warra(cmbTpoProdModWarra.getSelectedItem().toString());
        garantia.setNom_moneda_warra(cmbMonedaModWarra.getSelectedItem().toString());
        garantia.setTipo_gara_warra(cmbTpoGtiaModWarra.getSelectedItem().toString()); 
        garantia.setAdjuntar_warra(this.txtAdjArchiModWarra.getText().trim());
        garantia.setIngre_prod_warra(txtIngProdModWarra.getText());
        
        int respuesta = javax.swing.JOptionPane.showConfirmDialog(null, "Esta seguro de modificar esta garantia ?", "Modificacion", JOptionPane.OK_CANCEL_OPTION);
        //Si acepta
        if(respuesta == 0)
        {
            reg.modificarGtiaWarrantPorDunWarra(garantia, user);
            javax.swing.JOptionPane.showMessageDialog(null, "Garantia Modificada");
            MenuPrincipal venMenuPrincipal = new MenuPrincipal(user);
            venMenuPrincipal.setVisible(true);
            ModificacionGarantiaWarrant.this.dispose();
        }
}catch(Exception e)
{
    e.getMessage();
}
    }//GEN-LAST:event_btnActualizarModWarraActionPerformed

    private void chkFolioModWarraActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chkFolioModWarraActionPerformed
        if (chkFolioModWarra.isSelected()) {
            pnlBuscarFolio.setVisible(true);
            pnlBuscarDUN.setVisible(false);
        }
        else
        {
          pnlBuscarFolio.setVisible(false);  
        }
    }//GEN-LAST:event_chkFolioModWarraActionPerformed

    private void chkDunModWarraActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chkDunModWarraActionPerformed
        if (chkDunModWarra.isSelected()) {
            pnlBuscarFolio.setVisible(false);
            pnlBuscarDUN.setVisible(true);
        }
        else
        {
          pnlBuscarDUN.setVisible(false);  
        }
    }//GEN-LAST:event_chkDunModWarraActionPerformed

    private void btnExaminarModWarraActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnExaminarModWarraActionPerformed
        JFileChooser filechooser = new JFileChooser();
        int opcion = filechooser.showOpenDialog(this);
        if (opcion==JFileChooser.APPROVE_OPTION){
            txtAdjArchiModWarra.setText(filechooser.getSelectedFile().getPath());
        }
    }//GEN-LAST:event_btnExaminarModWarraActionPerformed

    private void btnAdjuntarModWarraActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAdjuntarModWarraActionPerformed
        if(!this.txtAdjArchiModWarra.getText().equals("")){
        garantiaWarrantsDTO garantia = new garantiaWarrantsDTO();
        garantia.setAdjuntar_warra(this.txtAdjArchiModWarra.getText().trim());
        javax.swing.JOptionPane.showMessageDialog(this, "Archivo guardado");
        }else{
        javax.swing.JOptionPane.showMessageDialog(this, "Adjunte archivo");
        }
    }//GEN-LAST:event_btnAdjuntarModWarraActionPerformed

    private void btnBuscarDUNImprimirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBuscarDUNImprimirActionPerformed
       
        try{
            ArrayList<garantiaWarrantsDTO> salida = reg.ListarPorDunWarra(this.txtBuscarDunImprimir.getText().trim());
            if(salida.isEmpty())
            {
                
                this.txtBuscarDunImprimir.setText(null);
                DefaultTableModel model = (DefaultTableModel)tbSalidaImprimirModificacionWarrant.getModel();
                model.setNumRows(0);
                javax.swing.JOptionPane.showMessageDialog(this, "No hay garantias registradas!");
            }
            else
            {
                
                DefaultTableModel model = (DefaultTableModel)tbSalidaImprimirModificacionWarrant.getModel();
                model.setColumnCount(0);
                
                if(model.getColumnCount() < 1)
                {
                   
                    Object[] arr1 ={"Rut: ","Nombre: ", "Calle: ", "Garantía: ", "Número identificatorio Warrant: ",
                        "Número de folio: ", "Monto incial: ", "Creación de la garantía: ", "Sucursal: ",
                        "Tipo producto: ","Fecha último debito: ", "Moneda: ","Fecha última Tasación: ",
                        "Tipo garantía: ","Ingreso de Producto: ","Fecha vencimiento: ","Fecha último revaluo: ",
                        "Fecha último crédito: ","Estado de la garantía: ","Fecha Aprobado/Rechazado: ","Fecha de modificación: ",
                        "Usuario: " };
                    model.addColumn("Concepto", arr1);
                    
                    for(garantiaWarrantsDTO w: salida)
                {
                    Object[] arr2 ={
                    w.getRut_garante_warra(),
                    w.getNombre_warra() + "  " + w.getApell_paterno_warra() + "  " + w.getApell_materno_warra(),
                    w.getCalle_warra() + "  " + w.getNum_warra(),
                    w.getNom_garantia_warra(),
                    w.getDun_warra(),w.getFolio_warra(),w.getMonto_inicial(),w.getFech_crea_warra(),
                    w.getNom_sucursal_warra(),w.getTipo_prod_warra(),w.getFech_ult_deb_warra(),
                    w.getNom_moneda_warra(),w.getFech_ult_tasa_warra(),w.getTipo_gara_warra(),w.getIngre_prod_warra(),
                    w.getFech_exti_warra(),w.getFech_ult_reval_warra(),w.getFech_ult_cred_warra(),
                    w.getEstado_warra(),w.getFech_crea_warra(),w.getFech_modifi_warra(),
                    w.getNombre_usuario()
                    };
                     
                    model.addColumn("Contenido",arr2);    
                }
                    
                    Object[] arr3 = {" "," "," "," "," "," "," "," "," "," ",
                                     " "," "," "," "," "," "," "," "," "," "," "," "};
                    model.addColumn("Observaciones",arr3);
                    
                }
                
               
            }
        }
        catch(Exception e)
        {
            e.getMessage();
        }
    }//GEN-LAST:event_btnBuscarDUNImprimirActionPerformed

    private void btnImprimirModificacionWarrantActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnImprimirModificacionWarrantActionPerformed
        try {
            
        int fila= 0;
  
        List Resultados = new ArrayList();
        ComprobanteGeneralDTO tipo;
        Resultados.clear();
        
        for(fila = 0; fila< tbSalidaImprimirModificacionWarrant.getRowCount(); fila++)
        {
            
           tipo = new ComprobanteGeneralDTO(String.valueOf(tbSalidaImprimirModificacionWarrant.getValueAt(fila, 0)),
                    " " + String.valueOf(tbSalidaImprimirModificacionWarrant.getValueAt(fila, 1)), " " + String.valueOf(tbSalidaImprimirModificacionWarrant.getValueAt(fila, 2))  + "\n");
           Resultados.add(tipo);

        }
        
            String reportSource = "C:\\Users\\SoftGroup\\Documents\\NetBeansProjects\\trunk\\AppGarantias\\build\\classes\\Reporte\\ComprobanteGeneralGarantias.jrxml";

            JasperReport jr = JasperCompileManager.compileReport(reportSource);
            
            
            JFrame reporte = new JFrame();
            reporte.setSize(900, 700);
            reporte.setLocationRelativeTo(null);
            reporte.setTitle("IMPRESIÓN");
            String fechaImpresion = String.valueOf(Fechas.FechaSistema());
            
            Map<String, Object> map = new HashMap<String, Object>();
            
            map.put("Titulo", "Sistema Gestión de Garantías Bancarias");
            map.put("fecha", fechaImpresion);
            map.put("nombreBanco", "Banco xxxxxx");
            map.put("subtitulo", "Comprobante Modificación Warrant");
            map.put("timbre", "Timbre");
            map.put("fechaUsuario","Fecha");
            map.put("firma","Firma");
            
            
            JRBeanCollectionDataSource coleccion = new JRBeanCollectionDataSource(Resultados);
            JasperPrint jp = JasperFillManager.fillReport(jr, map, coleccion);
            JRViewer jv = new JRViewer(jp);
            reporte.getContentPane().add(jv);
            reporte.setVisible(true);
            
            
            
        } catch (JRException e) {
            e.printStackTrace();
            Logger.getLogger(ModificacionGarantiaWarrant.class.getName()).log(Level.SEVERE, null, e);
        }
    }//GEN-LAST:event_btnImprimirModificacionWarrantActionPerformed

    private void btnMenuPrincipalWarrantActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnMenuPrincipalWarrantActionPerformed
        MenuPrincipal venMenuPrincipal = new MenuPrincipal(user);
        venMenuPrincipal.setVisible(true);
        ModificacionGarantiaWarrant.this.dispose();
    }//GEN-LAST:event_btnMenuPrincipalWarrantActionPerformed

    /**
     * @param args the command line arguments
     */
//    public static void main(String args[]) {
//        /*
//         * Set the Nimbus look and feel
//         */
//        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
//        /*
//         * If Nimbus (introduced in Java SE 6) is not available, stay with the
//         * default look and feel. For details see
//         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
//         */
//        try {
//            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
//                if ("Nimbus".equals(info.getName())) {
//                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
//                    break;
//                }
//            }
//        } catch (ClassNotFoundException ex) {
//            java.util.logging.Logger.getLogger(ModificacionGarantiaWarrant.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        } catch (InstantiationException ex) {
//            java.util.logging.Logger.getLogger(ModificacionGarantiaWarrant.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        } catch (IllegalAccessException ex) {
//            java.util.logging.Logger.getLogger(ModificacionGarantiaWarrant.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
//            java.util.logging.Logger.getLogger(ModificacionGarantiaWarrant.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        }
//        //</editor-fold>
//
//        /*
//         * Create and display the form
//         */
//        java.awt.EventQueue.invokeLater(new Runnable() {
//
//            public void run() {
//                new ModificacionGarantiaWarrant().setVisible(true);
//            }
//        });
//    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnActualizarModWarra;
    private javax.swing.JButton btnAdjuntarModWarra;
    private javax.swing.JButton btnBuscarDUNImprimir;
    private javax.swing.JButton btnBuscarFolioModWarra;
    private javax.swing.JButton btnDunModWarra;
    private javax.swing.JButton btnExaminarModWarra;
    private javax.swing.JButton btnImprimirModificacionWarrant;
    private javax.swing.JButton btnMenuPriciModWarra;
    private javax.swing.JButton btnMenuPrincipal;
    private javax.swing.JButton btnMenuPrincipalWarrant;
    private javax.swing.ButtonGroup buttonGroup1;
    private javax.swing.JCheckBox chkDunModWarra;
    private javax.swing.JCheckBox chkFolioModWarra;
    private javax.swing.JComboBox cmbMonedaModWarra;
    private javax.swing.JComboBox cmbSucursalModWarra;
    private javax.swing.JComboBox cmbTpoGtiaModWarra;
    private javax.swing.JComboBox cmbTpoProdModWarra;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel30;
    private javax.swing.JLabel jLabel31;
    private javax.swing.JLabel jLabel36;
    private javax.swing.JLabel jLabel37;
    private javax.swing.JLabel jLabel39;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel40;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel10;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JPanel jPanel8;
    private javax.swing.JPanel jPanel9;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JTabbedPane jTabbedPane1;
    private com.toedter.calendar.JDateChooser jcFechaExtincion;
    private com.toedter.calendar.JDateChooser jcFechaModifica;
    private com.toedter.calendar.JDateChooser jcFechaUltRevaluo;
    private com.toedter.calendar.JDateChooser jcFechaUltimoCredito;
    private com.toedter.calendar.JDateChooser jcUltimaTasacion;
    private com.toedter.calendar.JDateChooser jcUltimoDebito;
    private javax.swing.JLabel lblDescripcion;
    private javax.swing.JPanel pnlBuscarDUN;
    private javax.swing.JPanel pnlBuscarFolio;
    private javax.swing.JPanel pnlCreacionGaraWarra;
    private javax.swing.JPanel pnlDatosPersoGara;
    private javax.swing.JPanel pnlDescripGarantia;
    private javax.swing.JTable tbSalidaImprimirModificacionWarrant;
    private javax.swing.JTextField txtAdjArchiModWarra;
    private javax.swing.JTextField txtApellMatModWarra;
    private javax.swing.JTextField txtApellPatModWarra;
    private javax.swing.JTextField txtBuscarDunImprimir;
    private javax.swing.JTextArea txtDescripcionModWarra;
    private javax.swing.JTextField txtDun14;
    private javax.swing.JTextField txtDunModWarra;
    private javax.swing.JTextField txtFechaCreacion;
    private javax.swing.JTextField txtFolioModWarra;
    private javax.swing.JTextField txtIngProdModWarra;
    private javax.swing.JTextField txtNombreModWarra;
    private javax.swing.JTextArea txtOtroComentarioModWarra;
    private javax.swing.JTextField txtRutModWarra;
    // End of variables declaration//GEN-END:variables

    private void limpiar() {
        this.txtRutModWarra.setText(null);
//            this.txtFolioGarModWarra.setText(null);
            this.txtApellPatModWarra.setText(null);
            this.txtApellMatModWarra.setText(null);
            this.txtNombreModWarra.setText(null);
            this.txtDescripcionModWarra.setText(null);
            this.txtOtroComentarioModWarra.setText(null);
            this.txtIngProdModWarra.setText(null);
            this.txtFechaCreacion.setText(null);
            this.jcUltimoDebito.setCalendar(null);
            this.jcUltimaTasacion.setCalendar(null);
            this.jcFechaModifica.setCalendar(null);
            this.jcFechaExtincion.setCalendar(null);
            this.jcFechaUltRevaluo.setCalendar(null);
            this.jcFechaUltimoCredito.setCalendar(null);
            this.jcFechaUltimoCredito.setCalendar(null);
            this.cmbSucursalModWarra.setSelectedItem("Seleccione");
            this.cmbTpoProdModWarra.setSelectedItem("Seleccione");
            this.cmbMonedaModWarra.setSelectedItem("Seleccione");
            this.cmbTpoGtiaModWarra.setSelectedItem("Seleccione");
    }
}
